<?php
include_once('libs/class.database.php');

	class Jenis
	{
		public $link;
		function __construct()
		{
			$konek=new Database();
			$this->link=$konek->connect();
			return $this->link;
		}
		
		function getJenis()
		{
			$query=$this->link->query("SELECT * FROM jns_anggota");
			$jml_data=$query->rowCount();
			if($jml_data>=1)
			{
				$hasil=$query->fetchAll();
				return $hasil;
			}
			else
			{
				return $jml_data;
			}
		}
	}
?>